<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>两栏自适应布局</title>
    <link rel="stylesheet" href="./index.css" />
  </head>
  <body>
    <h1 class="title">两栏自适应布局</h1>
    <!-- 浮动+BFC -->
    <div class="float-layout">
      <div class="left">left</div>
      <div class="right">right</div>
    </div>

    <div class="gapArea"></div>

    <!-- flex -->
    <div class="flex-layout">
      <div class="left">left</div>
      <div class="right">right</div>
    </div>

    <div class="gapArea"></div>

    <!-- position -->
    <div class="position-layout">
      <div class="left">left</div>
      <div class="right">right</div>
    </div>

    <h1 class="title">三栏自适应布局</h1>
    <!-- flex -->
    <div class="flex-layout-three">
      <div class="left">left</div>
      <div class="center">center</div>
      <div class="right">right</div>
    </div>

    <div class="gapArea"></div>

    <!-- float -->
    <div class="float-layout-three">
      <div class="left">left</div>
      <div class="right">right</div>
      <div class="center">center</div>
    </div>

    <div class="gapArea"></div>

    <!-- position -->
     <div class="position-layout-three">
      <div class="left">left</div>
      <div class="center">center</div>
      <div class="right">right</div>
    </div>
  </body>
</html>
